1. Added code for Upsampling/Downsampling