create general class - element and use prototyping