adding some basic flow control examples