Implemented Rubber Band example from book