Moved 'fortune cookie' function into module in lib directory.