my code and comments added