spin out vars to class and declare as self