Begining of diagram drawing