adding functionality to determine time till next class