Add getColor method on Doc