This is Homework #2 of class "DIP"