Changed method for name function. Passed Test no.2.