adds graphs 5 and 6