implement class wrapper