setting up classes and conditionals