Changing getColor method to protected