answer to one of the coding questions