First attempt at replicating recursive block