Write a Python class to represent a person with name, age and gender attributes.
class Person:
    def __init__(self, name, age, gender):
        self.name = name
        self.age = age
        self.gender = gender