Solved problem 19 - without using Date object