Pass vars to the class