Setting up and solving problems