Adding fuction to paint the background with colors.