An analytical approach to the cooling of a flat plate