overall structure for bb app