Shifting And Sampling Of Data