This code is written for arduino 1.0.1
