R scripts improved: OO compatible