Immutable Class

Example without mutable refs

What is the advantage of immutability

Rules to define immutable classes

Example with mutable refs