Homework #2 for COMS 3101