Save the class and type