Work on replicating the generic apply function
Work on making a generic apply