implemented activity class