Homework 2 of SaaS course (CS169.1X)