Tutorial 6 Solution