while x2 == '':
    try:
        x2 = input('Enter the x co-ordinate of the second Orangutan: ')
        print ''
    except:
        print ''
        print 'Error!. Entry must consist solely of digits.'
        print ''

while y2 == '':
    try:
        y2 = input('Enter the y co-ordinate of the second Orangutan: ')
        print ''
    except:
        print ''
        print 'Error!. Entry must consist solely of digits.'
        print ''

# The following section constructs the two 'OrangUtan' objects ('O1' and 'O2')
# from the collected data.

O1 = OrangUtan(name1,x1,y1)
O2 = OrangUtan(name2,x2,y2)

# The next section uses a function associated with the 'OrangUtan' class to find
# the distance between two 'OrangUtan' objects 'O1' and 'O2'.

print name1, 'is', O1.distanceFrom(O2.getX(),O2.getY()), 'units from', name2
print ''
raw_input('<<< Press Enter to exit >>>')