Samsara Interview Question

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