Implement solution 58: composition.