solve day 1 problem 3