Create goal.php

Needs, syntaxically, to factorize g() on each call but it works :)
Merge pull request #166 from Lcfvs/patch-2

Create goal.php