added classes to <a> and <p>
removed displayParagraph() and made anonymous function for click event. Fetching elements via class names to remove dependency