Revert "codigo movido a clases"

This reverts commit ccba4a8f22befd7d36d8624da4689cabaadfb978.