Filled the required code for ast which needs to be modified at certain places. The code compiles just fine.