Revert "Revert "new code""

This reverts commit 2b4fdb8295c8e282799b28556467a12c84c736dd.
SVM demo