Add lab 5, functions