first commit

- refer from http://yusukebe.com/archives/20120627/181253.html