Setting up a functional structure