pass data through class