Accessing Variables and Functions using objects