More event handler code that belongs inside the main object