created __init__ function