added the activity Java class