Updated define method to simplify mapping definition