coding #2 adding the span tag to show the result