Methods plus tests for the coding tasks