added homework4 (without q3)