Complete the function chapter