Completion of assignment 2.