First Part of the Homework -Done