homework 2 for advanced se 2431441