new geometry long version EDUCATIONAL ONLY