Class adaption