added new class Activity for Tasks and Events.