Updating Code for smiley.