implemented priority for add. changed UserInput.priority to char instead of int