statutory right of appeal in criminal cases