Put code into packages in scala