Add simple implementation of compose