pls add basic blocks solution ruby