Organized the code into packages.