Added everything...
Function program with small bug.
Final exercise.