refactoring. Se agregan comentarios.