custom class scope