Marlins beats Nationals 3-2