Adding the createOutline function.