const regex = /(\d+),(\d+),(\d+)/

export default class Color {
  
  static parseString(str) {
    let res = regex.exec(str)
    this.value = res.shift().slice(0)
  }
  
  static isValid(str) {
    return regex.test(str)
  }
  
  toString() {
    return "Color"
  }
  
  toArray() {
    return this.value
  }
  
}

@@ -56,24 +56,125 @@
  Color %7B%0A  %0A
+  constructor(str = '') %7B%0A    this.value = Color.isValid(str) ? Color.parseString(str) : null%0A  %7D%0A  %0A
   static par

test if colour is valid before setting