code for slate application and UML drawer