Developed a first draft of the generic function example. Will include more explanations of the different functions later.