Adding the code for fetch