added a second sample program for if and while.