split code to packages