Started writing events class and a few tests for the resources