refactored examples dir