Using functions to instantiate sections