Makes a class and its instances imutable