flask example from documentation