Created a Trait for handing packets withs IDs for scala based objects