base code for chair