Initial commit, almost functionall snf - naive version