for assignment 2