adding an almost working structure