finish shortest and part of ex-1, valgrind success