created record class and sorted out how to get time from timePicker