homework wk1

part 1 and part 2