Tutorial 6 exercises