Named variables and reformated the code