Object Oriented programming

class NoteCounter:
  def __init__(self):
    self.note=60

  def nextNote(self):
    self.note += 1
    return self.note

melody=NoteCounter()
print melody.note
print melody.nextNote()