cleaned the code:
- correction on variables name
- followed indentation rules