example of assigning to two different tables