Homework 2 for CSE5322 Spring 2014