updated examples accordingly