Added getAddress method in Objects class