Added Sage's code
Revert "Added Sage's code"

This reverts commit e1e6c1b956277d39dda03b8690bca0553030537d.