From Teaching to Cybersecurity: A Journey of Adaptation