private void meetingMenu(int meetingJoined) throws IOException, ClassNotFoundException {
        String opt = "";
        while (!("0".equals(opt))) {
            System.out.println("Welcome to the meeting, " + username_logged + "!\n");
            System.out.println("Please select one of the following options (0 to quit):\n");
            System.out.println("1-List Agenda Items\n2-Add Agenda Items\n3-Modify Agenda Items\n4-Delete Agenda Items\n");
            opt = scs.nextLine();
            switch (opt) {

                //list
                case "1":
                    Message listitems = new Message(username_logged, null, null, "listAgendaItems");
                    listitems.dataint = meetingJoined;
                    sendOut(listitems);
                    listitems = (Message) in.readObject();
                    System.out.println(listitems.data);
                    System.out.println("Do you wish to enter any agenda item? Enter its ID. (or 0 to exit)\n");
                    int listop;
                    listop = sci.nextInt();
                    if (listop != 0) {
                        itemJoined = listop;
                        agendaItemMenu(listop, meetingJoined);
                        //voltar a colocar o itemJoined a 0 para quando sair
                        itemJoined = 0;
                    }
                    break;

                //add
                case "2":

                    Message additems = new Message(username_logged, null, null, "addAgendaItem");
                    additems.dataint = meetingJoined;
                    System.out.println("Nome:");
                    additems.name = scs.nextLine();
                    System.out.println("Description:");
                    additems.description = scs.nextLine();
                    sendOut(additems);
                    additems = (Message) in.readObject();
                    if (additems.result) {
                        System.out.println("Item added to the agenda!");
                    } else {
                        System.out.println("An error occured. Please try again.");
                    }

                    break;

                //modify
                case "3":
                    Message listi = new Message(username_logged, null, null, "listAgendaItems");
                    listi.dataint = meetingJoined;
                    sendOut(listi);
                    listi = (Message) in.readObject();
                    System.out.println(listi.data);
                    Message modifyitems = new Message(username_logged, null, null, "modifyagendaitem");
                    System.out.println("Which one do tou wish to modify?\n");
                    modifyitems.dataint = sci.nextInt();
                    System.out.println("(1)Name (2)Description");
                    modifyitems.dataint2 = sci.nextInt();
                    sendOut(modifyitems);
                    modifyitems = (Message) in.readObject();
                    if (modifyitems.result) {
                        System.out.println("Modified.");
                    } else {
                        System.out.println("An error occured. Please try again");
                    }

                    break;

                //delete
                case "4":

                    Message listToDelete = new Message(username_logged, null, null, "listAgendaItems");
                    listToDelete.dataint = meetingJoined;
                    sendOut(listToDelete);
                    listToDelete = (Message) in.readObject();
                    System.out.println(listToDelete.data);
                    Message deleteItem = new Message(username_logged, null, null, "deleteagendaitem");
                    System.out.println("Which one do tou wish to delete?\n");
                    deleteItem.dataint = sci.nextInt();
                    sendOut(deleteItem);
                    deleteItem = (Message) in.readObject();
                    if (deleteItem.result) {
                        System.out.println("Deleted!\n");
                    } else {
                        System.out.println("A problem occured. Someone else probably deleted it already. Please refresh\n");
                    }
                    break;

            }
        }

    }