fixed a bug (placement of opening brace of class definitions)