Solved the Homework