Code for TI-84 and TI-89