first commit

moved older version to coreData