using class reference