activityrecognition implemented.