Proof of concept pythagoras formula