Sample solutions for tutorial 3