Updated my_solution for readability.