Adds class definition