I have optimazed the code and commented