Tutorial 3, Functions