Created a generic class with two generic types