Moved 'fortune cookie' functionality into module - from tutorial