added extends to activitySensor