Implemented the scope manager and variables declaration.