Homework 2 for saas course