Added initial IO and tried out cond & def