adding gen-class