homework assignment #2 for software engineering course