a very simple example of improving code