Fixed a bug in a corner case
Replaced System.out with logging in fortune package