HW1: Problem 4 up to letter i and minor adjustments on Problem 2