Finished first part of question 3