add get_assignment method