added numpy interface example