Playing with Ruby and AI concepts