problem 12 works at ~6 seconds