completed intro to functions