Sample program using if blocks