the simple example using in java collections