final working numpyex1