Updated with reshape2 library