solve several simple problems