Passed some variables as members of prism class