exercise 5.14 startsWith implemented