diff --git a/LICENSE b/LICENSE
new file mode 100644
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,19 @@
+The MIT License (MIT)
+Copyright (c) 2016-2017 Tao He
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
+of the Software, and to permit persons to whom the Software is furnished to do
+so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/Setup.hs b/Setup.hs
new file mode 100644
--- /dev/null
+++ b/Setup.hs
@@ -0,0 +1,2 @@
+import Distribution.Simple
+main = defaultMain
diff --git a/app/ndarray.hs b/app/ndarray.hs
new file mode 100644
--- /dev/null
+++ b/app/ndarray.hs
@@ -0,0 +1,13 @@
+-----------------------------------------------------------
+-- |
+-- copyright:                   (c) 2016 Tao He
+-- license:                     MIT
+-- maintainer:                  sighingnow@gmail.com
+--
+-- Example of how to work with NDArray.
+--
+
+import           MXNet.Core.NDArray
+
+main :: IO ()
+main = makeNDArray [2,3,4] >>= getNDArrayShape >>= print
diff --git a/mxnet-examples.cabal b/mxnet-examples.cabal
new file mode 100644
--- /dev/null
+++ b/mxnet-examples.cabal
@@ -0,0 +1,21 @@
+name:                       mxnet-examples
+version:                    0.1.0.0
+synopsis:                   Examples for MXNet in Haskell.
+description:                Examples for MXNet in Haskell.
+homepage:                   http://github.com/sighingnow/mxnet-haskell#readme
+license:                    MIT
+license-file:               LICENSE
+author:                     Tao He
+maintainer:                 sighingnow@gmail.com
+copyright:                  Copyright: (c) 2016-2017 Tao He
+category:                   Machine Learning
+build-type:                 Simple
+cabal-version:              >= 1.10
+
+Executable ndarray
+    main-is:                ndarray.hs
+    hs-source-dirs:         app
+    ghc-options:            -Wall
+    default-language:       Haskell2010
+    build-depends:          base >= 4.7 && < 5.0
+                          , mxnet >= 0.1
