implemented class in script