Initial commit of the complete.R file