functions generating classes 817791