problem 3: onto prob4 now