Using composition in Frame