Elementary coordinate geometry