update example showing methods of using different units