Setting things up before implementing forward mode AD