use prototype for class