added default assignment, and implemented get_assignments.