modified to print smiley faces