Class passing in context