Update objects.py

More code added.