Storing of function associated to types and instances is now working