Defines class