I need to get the code optimized, but works fine by now
I need to optimize the code,  but works fine by now