Homework1 for CMU 11-791