completed code

Dependencies:   mbed