makeAndCall - compile standard function into program and call it