create general class