adapt the color code converter challenge to the error in the challenge