first two parts of hw1