recover the format
Merge pull request #23 from plucury/issue-18

Built the function `by-method` mentioned in Issue 18