Selfinjective algebras and tilting theory