convert latex code from textbook

Cancelled