Started working on sparkR code