added scaffolding, updated with some validation and formatting of time