finish assignment 2.2