create oo class and usage