Create package from code