expanded ex6.2
example from lecture slides not needed, exercise was already solved