started working on mbed code