refactor: mark_color() should be out of class