added rainbow method to painter and smarten up star class