solving issue #24

https://github.com/serpentem/theoricus/issues/24