Create goal.php

Needs, syntaxically, to factorize g() on each call but it works :)