Building block

To practice modeling with OpenScad I started making model of a building block made famous by certain danish toy company.

Goal is to make in such a way that different sizes could be made just by changing few variables. Currently only 2x4 works to some degree.