Solution for Homework #1