Final Code with Comments