finished problem 3 and started problem 4