modified sender to take an argument of how many messages to send