prob 13, prob 12 is really hard