assignment 2 final

completed code