updated file with diagram