Type class.

Hope this is what was needed, I'm wasn't too clear.