Needed logic and Tests added for the new table: binTableFromEvents