so temeraire might lay his head down with some degree of relief , and the pleasant occupation , before he slept , of working out in his head a design for a pavilion of adequate magnificence to console laurence for any remaining regrets , patterned in stone of red and gold .