added a sample without numpy