add java files for activity 2