Functions

The preable is added at the beginning of the program