Add support for creating samples

Change-Id: Ib33a5fd162d760efa23a2fc496c1d11d79484491