added rational squaring example