Create and fund a smart contract from a smart contract using inner transactions?

See examples here:

Specifically c2c_max_depth and trampoline