Also remove magic number to fix #30. (This is unrelated to #23 and #31 but I don't know how to create separate pull requests in GitHub while the first pull request is open.)
Someone more expert than me should definitely think about the change and test it more deeply. I'm no expert. In fact, that's exactly why I'm looking at the examples so I can model good quality code. 🙂
Fixes #23 and #31.
Also remove magic number to fix #30. (This is unrelated to #23 and #31 but I don't know how to create separate pull requests in GitHub while the first pull request is open.)