organised the code