Code for research fellowship of summer 2013.