HW1
EX2 and EX3