Moving Model definition to the top so that's easier to find