refactored examples

really refactored examples