working on assn5, option 5