moved 'fortune cookie' functionality into module