. . . "Perhaps it would be a good solution to write a function that works with the types of a.ip and b.ip rather than a and b." .