working on writing portion of semaphone