Title: The laser diode as a multi-functional device