Understanding the difference between mutability and immutability