First part of homework 1