Finished problem 4. ready to submit.