organise the code to be able to view in one screen.