First working version of custom blocks