You could for example have a function which is used to initialize things