Creating globals :sailboat:

Moving some functions to model