Used frequencies function to count words and defn- special macro that creates private functions in order to simplify the code