hw2 for SaaS Edx course, Summer 2013