The first part of homework 1, containing the answers to problems 1 and 2