adding package.json
added test case + example