Function lab 1