passing a class requires working