Nano device measures molecule shape