set answer to the data logic from CS cookbook