new constrcutor for configuring own mapper class