the completion of the TODOs for the coding test