Second problem done