added an if statement to show public and private individual events for p...

...urpose of class demo