Committing edited Functions

I have gone through all 3 functions, put them in their proper file
structures, edited all non working functions, added arguments,
parameters and returning values. I fixed all non working conditionals,
ternary, and added an anonymous function. I have added all requirements
for the assignment.