add exercise to functions