set up basic skeleton for anonymous function