@@ -0,0 +1,1231 @@
+package seedu.address.logic.commands;%0A%0Aimport seedu.address.commons.exceptions.IllegalValueException;%0Aimport seedu.address.model.task.FloatingTask;%0Aimport seedu.address.model.task.Name;%0Aimport seedu.address.model.task.Priority;%0A%0A/**%0A * Adds an event task to the task book.%0A */%0Apublic class AddFloatingTaskCommand extends Command %7B%0A%0A    public static final String COMMAND_WORD = %22task%22;%0A%0A    public static final String MESSAGE_USAGE = COMMAND_WORD + %22: Adds an floating task to the task book. %22%0A            + %22Parameters: %5C%22NAME%5C%22 %5BPRIORITY%5D%5Cn%22%0A            + %22Example: %22 + COMMAND_WORD%0A            + %22 %5C%22Buy A Helicopter%5C%22 4%22;%0A%0A    public static final String MESSAGE_SUCCESS = %22New event added: %251$s%22;%0A%0A    private final FloatingTask floatingTask;%0A%0A    public AddFloatingTaskCommand(String name, String priority) throws IllegalValueException %7B%0A        this.floatingTask = new FloatingTask(new Name(name), new Priority(priority));%0A    %7D%0A%0A    public FloatingTask getFloatingTask() %7B%0A        return floatingTask;%0A    %7D%0A%0A    @Override%0A    public CommandResult execute() %7B%0A        assert model != null;%0A        model.addFloatingTask(floatingTask);%0A        return new CommandResult(String.format(MESSAGE_SUCCESS, floatingTask));%0A    %7D%0A%0A%7D%0A

implement AddFloatingTaskCommand