How to create Immutable class