added the section on functions within functions