adding rating feature when printing results on page