# Exercise 40: Modules, Classes, and Objects

class Song(object):

	def __init__(self, lyrics):
		self.lyrics = lyrics

	def sing_me_a_song(self):
		for line in self.lyrics:
			print line

happy_bday = Song(["Happy birthday to you,",
                   "I don't want to get sued",
                   "So I'll stop right there."])

bulls_on_parade = Song(["They rally around the family,", 
                        "With pockets full of shells"])

happy_bday.sing_me_a_song()

bulls_on_parade.sing_me_a_song()

# pass a variable to constructor
# note, using a list is required otherwise it will print one character per line
new_lyrics = ["Break it,", "trash it,", "thrash it,", "you can't hurt it."]
new_song = Song(new_lyrics)
new_song.sing_me_a_song()
