#! /usr/bin/python

class Critter:

   # this routine gets run automatically
   #    when a Critter is first created
   def __init__(self, age, name):
      # store the critter's name and age
      self.myAge = age
      self.myName = name
      
   # this routine ages the critter by a year
   def update(self):
      self.myAge = self.myAge + 1
      print self.myName, "is now", self.myAge


# create a couple of Critters using the class
bob = Critter(5, 'Bob')   # bob starts off at age 5
phil = Critter(1, 'Phil') # phil starts off at age 1

# run the update routine on each once every 'year'
year = 1
while (year <= 3):
   print "It is year", year
   bob.update()
   phil.update()
   year = year + 1

