fn onInit() { print "init called"; } fn onStep() { print "step called"; } fn onFree() { print "free called"; }