add a basic activity class with begin and end functions