Finished problem #4