Resolving homework 2.1