added halley's example