implemented TimeController: fixed #19