class for mapping