added terminal blink, speaker code