Edited lab2 code and tested on board