got most of the functionality of the arduino portion of this lab working in wave2.ino