final submission for assignment 2