[code] write com and creation of class diagram