Implement function hoisting