Fix chebops to work with ATAP chapter 21

Closes #179.