The pencil icon changes to a * when you are over the right spot for making the connection.
If you want to rearrange the diagram, click one of the function blocks and move it. The connector line moves and resizes automatically.
Your finished diagram should look like this: