A better way to define packages