change CrateClass to class and fix up indentation in file