fixed up examples
fixed up name algorithm