Solutions to Ex 6: problem 5

Change-Id: I8f5bb59f9057deda78ba2e2197f12da2e8db181b