refactored examples creation