Added pagination feature to events
Added passing test to the pagination feature