the residents of the area used to toss garbage into the ocean , a lot of which consisted of glass , and over the years , the waves had smoothed the sharp shards into beautiful glass pebbles and deposited thousands of them back onto the beach .