- Added Time class

- Made behaviour functional