first hw3 problem