edited examples to decrease execution time