Completes assignment 1