my solution to 3 was actually a solution to 5.
did problem 3 for real. 5 should have been moved to 5.