Teacher retires after decades of service