add equals to class Device and ModelPackage