Java Project with immutable objects example