Create goal.php

Working, but with extra cost: have to use ${ ... }() to call it