Closes #47 Fixed method definition