finish problem 11
add template for new problem 12
finish problem 12
add todo
refactored helper functions using 'where' syntax