Code for Rebound (WIP)