added the if-else example