Completed first part of assignment 5.