added first version of diagram