Use composition instead of inheritance for application container