the right way to organise your code