Added class attributes

I wrote something about class attr. Please consider if it's quality is enough to merge it with official tutorial.