assignment 2 with my functions