Sai's codes for MSD Project 2014