def __init__ method for initilization