A more readable version of the code