Adding type diagram