1. change processTime to timeTaken
2. add parameter to getColorCode function for easy testing