I have written the codes which are easy to Understand. Do not copy