Assignment5 Ex 6a and 6b