Changed Date to long (time in millis) in Lesson class.