Remove unnecessary brackets.
Refactor variable name to a more understandable name
Try to implement a event sorting.
Refactor begin-blocks to "unless nil?".