Close #5: resolve() method.

 On branch master

	modified:   index.js
	modified:   test.js