Fix the syntax error and write a class named type