Also this part could benefit from empty lines to structure the code