added name to attendee, refactored code