finished assignment 2.