Finished task#1 of hw#3