Solving previous problems