functions added

added timer function and workout function