homework6 - preparations