added class method to event to extract events from directory name. used TDD, fully tested