Set up main class and function helper class