Samsara interview question

Write some basic class structure. Add some functionality to it.