Const correctness and immutability

TODO