Implemented defining of classes