Solved day eighteen