Adding/editing an assignment