refactored activity2 practice so that it works with the new architecture