title: How to call a method with arguments in Smalltalk
body: <p>I am new to the programming language Smalltalk and I can't seem to figure out how to call a method with arguments. I've been playing around with some code and created some methods, like for example (in GNU Smalltalk): </p>
  
  <pre><code>bin: n num: k [
        | i |
        i := 1.
        1 to:k do:[:j|
            i := i * 2.
        ].
        ^i
    ]
  </code></pre>
  
  <p>I would now like to call this function and actually get an answer, like for example: bin: 4 num: 2 (don't know how to do this). How can I do that? Is it even right to write 'bin: n num: k' when creating a method like I have done?</p>
  
  <p>Thanks in advance!</p>