Partially fixed selection function
Added assignment add and view functions