Ex 6 for HW02