very basic implementation of a learning chatbot