heavy.R seems complete, except for repetitious code which could be cleaner.