Arrange the code