homework 2 for advanced se 851352