added scaffolding for problem 18