complete sample done. Terrible code, but visualizes the point.