updated assignment 7