completed Homework 3 of Saas CS169.1x