first stab at class6 homeworks