Organized the code.