mod to a class
simple example