better class example, name bug fixed