Generalized the generics to multiple parameters
Added Pairs example to ilustrate generics with multiple parameters