class example syntax revision