Added typechecking to class vars