add an API for listing all problems and get an individual problem by id