Finished up to Problem 5