could solve the problem with using the at() function wich is const

there is still #include <iostream>. ignore that, I needed it for
debugging. :)