create a pythagoras model