completed exercises; I have no idea why solve works.