First working version of layout