Implemented color coding of types