removed unused import statements and refactored getFirstEventOfMonth()