maybe we should also give a parametrize this function a bit, for example the system size 5 could perhaps be a parameter?