finished remaining hw5 problem answers