mapper class implemented