Add code for homework assighments #1 and #2.