Working on getActivities method