refactored the colour changing code in assessment1