added rudimentary table workings