Similar Items: A formulation of D-institution using functor categories