adding immutable class example