similar assignments but with objects