added diagram of data