How can I Make easter eggs and unlockbles?

I want to make some hidden stuff in a game that can be unlocked by completing a task like collecting something. How can I do this?