appeal by way of a case stated