"better" problem 14, still took a long time