solve some simple problems