Updated: Created Object for ListActivities

Created an object reference for the ListActivities class and replaced
the while loop with a do while loop for more optimization.