created model class for cliente and refactored code to use it