fix getGreen and getBlue methods in Color class