solving problem 19 without the date package