# How to add a data module?

  1. Open .ksmile file, define the data module under the respective section.

  2. To define a data module you need the following:

    1. module name (unique to a project)

    2. dependent module list (if any)

    3. module package path (unique to a section)


       



      section lottery{
      	data-module LotteryData at com.metastay.lottery
        ...
      }
      
  3. Enter sbt shell, run command smile

  4. Refresh project in eclipse, respective .kdata file will appear.