completing assignment 2