added some sound code from stackoverflow