Refactored examples due to new examples library.