test passes
Add test for N =2
test passes
Add test for N=3
test passes
Refactor: move calculator creation into let