completed first version - chatroom name as parameter