Add my solutions to advanced building blocks(ruby)