Fixed attribute alias generation

And modified class sample for code convention
Migrated