Create a Python class named 'Dog' that has a method which returns the name of a given dog.
class Dog:
    def __init__(self, name):
        self.name = name

    def get_name(self):
        return self.name