Modified and given the code above.Please check once