created bouncingObject class to store extra properties for objects