Implement extensions for classes on ios based on protocol