The diagram tells about the relationship between your code and the framework and between code and library, it is not about architecture.