# Defining an Example Data Model

Select the `src` folder and then choose New → Other → Example EMF Model Creation Wizards → Data Model. Create a new data model, call it `example.data`. On the last page of the wizard, select Model as model object.

Figure 13. Create a sample data model

Next, populate this very model as following. Please note that in the case of attributes you have to define a type as well (i.e. String), not just a name.

Figure 14. Sample data model

Again, to avoid any typos here is the XMI for `example.data`:

    <?xml version="1.0" encoding="UTF-8"?>
    <data:DataModel
      xmi:version="2.0"
      xmlns:xmi="http://www.omg.org/XMI"
      xmlns:data="http://www.xpand.org/xpand.demo.emf.datamodel">
      <entity name="Person">
        <attribute name="name" type="String"/>
        <reference name="cars" toMany="true" target="//@entity.1"/>
      </entity>
      <entity name="Vehicle">
        <attribute name="plate" type="String"/>
      </entity>
    </data:DataModel>