problem with CLASS definition