Create goal.php

Working, but with extra cost: have to use ${ ... }() to call it
Merge pull request #109 from PunKeel/master

Create goal.php