Added class attributes to __init__().