Trying to formulate an answer generator