adding listItem function to console