Refactored examples activity